package main

import (
	"crypto/sha1"
	"fmt"
)

func genSHA1(sec, nonce, curtme string) string {
	var sum = sec + nonce + curtme
	h := sha1.New()
	h.Write([]byte(sum))
	bs := h.Sum(nil)
	sha := fmt.Sprintf("%x", bs)
	fmt.Println(sha)
	return sha
}

func main() {
	_ = genSHA1("1", "1", "1")
}